UkrSolution\BarcodeScanner\API\actions\CartActions D

Total Complexity 188
Dependencies 6
Dependents 3
Total lines 761
Lines of code 558
Logical lines of code 366
Comment lines 0
Methods 21
Properties 4

Methods 21

Method Rating Maintainability Complexity Lines of code
addItemToCart()
D
34 42 81
orderCreate()
C
34 24 83
findProductInCart()
B
46 23 33
addItem()
A
40 14 51
updateQuantity()
A
44 12 42
wcSession()
A
49 10 30
restoreCart()
A
49 10 29
getWcCheckoutErrors()
A
56 8 18
updateAttributes()
S
50 7 28
changeQuantityInCart()
S
54 7 20
setOrderTotal()
S
57 7 17
formatPriceForUpdate()
S
57 5 18
getWcErrors()
S
61 5 12
getShippingMethod()
S
62 4 11
removeItem()
S
56 2 18
getCartDetails()
S
54 1 21
getCartItems()
S
63 2 10
initFieldPrice()
S
68 2 7
cartRecalculate()
S
61 1 13
cartClear()
S
66 1 9
getStatuses()
S
69 1 7